package com.kfm.pm;

import java.util.Calendar;
import java.util.Date;

public class Conversion {

    public static void main(String[] args) {
        //
        Calendar calendar = Calendar.getInstance();
        // Calendar --> 转 Date
        Date date = calendar.getTime();
        System.out.println(date);
        Date date1 = new Date();
        // Date --> 转 Calendar
        calendar.setTime(date1);
        System.out.println(calendar);
    }


}

class Hope {
    public static void main(String args[]) {
        Hope h = new Hope();
    }
    protected Hope() {
        for (int i = 0; i < 10; i++)
            System.out.println(i);
    }
}

